export default {
  createSn:{//创建规格sn
    url: '/publics/sn/create',
    require:['token','clientid','snType']//prefix
  },
  createSns:{//批量创建规格sn
    url: '/publics/sn/goods/createBySize',
    require:['token','clientid','size','snType']//需要创建的数量,prefix
  },
  //cos
  createBucketByCos:{//访问cos创建存储箱，参数：title(选)、data(选)
    url: '/publics/cos/bucket/createByCos',
    require:['token','clientid','merchantCode','bucketName','regionName','accessPermission']
  },
  createBucketByManual:{//手动创建cos存储箱，参数：title(选)、data(选)
    url: '/publics/cos/bucket/createByManual',
    require:['token','clientid','merchantCode','bucketName','regionName','creationDate','accessPermission']
  },
  deleteBucket:{//删除存储箱，
    url: '/publics/cos/bucket/delete',
    require:['token','clientid','bucketName']
  },
  getBucket:{//获取存储箱，
    url: '/publics/cos/bucket/get',
    require:['token','clientid','bucketName']
  },
  getBucketList:{//获取存储箱列表
    url: '/publics/cos/bucket/list',
    require:['token','clientid']
  },
  judgeBucketExist:{//判断cos中指定的存储箱是否存在，参数：bucketName
    url: '/publics/cos/bucket/judgeBucketExist',
    require:['token','clientid','bucketName']
  },
  getBucketAcl:{//获取存储箱权限控制列表，参数：bucketName
    url: '/publics/cos/bucket/getBucketAcl',
    require:['token','clientid','bucketName']
  },
  getBucketListObjects:{//获取存储箱文件列表(个数有限制，一次最多获取1000个)，参数：prefix(选)、delimiter(选，true只获取当前目录)、maxKeys(选)
    url: '/publics/cos/bucket/listObjects',
    require:['token','clientid','bucketName']
  },
  getBucketAllObjects:{//获取存储箱文件所有列表，参数：、prefix(选)、delimiter(选，true只获取当前目录)
    url: '/publics/cos/bucket/listAllObjects',
    require:['token','clientid','bucketName']
  },
  generateSimplePresignedDownloadUrl:{//获取预签名的下载链接(访问返回网址直接下载)，参数：expirationTime(选)
    url: '/publics/cos/object/generateSimplePresignedDownloadUrl',
    require:['token','clientid','bucketName','key']
  },
  throughReportPDFOnline:{//获取预签名的下载链接(添加响应头后访问网址可在线观看)，参数：、、、(选)、responseContentLanguage(选)、(选)、responseCacheControl(选)
    url: '/publics/cos/object/generatePresignedDownloadUrlWithOverrideResponseHeader',
    require:['token','clientid','bucketName','key','responseContentType','responseContentDispositon']
  },
  simpleUploadByClent:{
    url:'/publics/file/simpleUpload/client',
    require:['token','clientid','file'],
    contentType:'multipart/form-data'
  }
}
